'''
    说明：这个文件主要介绍zip文件的处理使用
'''

import zipfile,os

'''
    解压zip文件

os.chdir('C:/Users/songh/Desktop/scripts2/')
zipfile = zipfile.ZipFile('C:\\Users\\songh\\Desktop\\scripts.zip')
zipfile.extractall()
zipfile.close()

zipfile = zipfile.ZipFile('C:\\Users\\songh\\Desktop\\scripts.zip')
zipfile.extractall('C:/Users/songh/Desktop/scripts3/')
zipfile.close()
'''

'''
    压缩文件

newZip = zipfile.ZipFile('C:\\Users\\songh\\Desktop\\scripts2.zip','w')
newZip.write('C:\\Users\\songh\\Desktop\\datax_new_v2.py',compress_type=zipfile.ZIP_DEFLATED)
newZip.close()
'''


